<%@page import="com.itwill.ecom.product.ProductServiceImpl"%>
<%@page import="com.itwill.ecom.product.ProductBeans"%>
<%@page import="com.itwill.ecom.cart.CartService"%>
<%@page import="java.util.List"%>
<%@page import="com.itwill.ecom.cart.CartBeans"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@ page language="java" contentType="text/plain; charset=UTF-8" pageEncoding="UTF-8"%>

<%



WebApplicationContext webApplicationContext = WebApplicationContextUtils.getWebApplicationContext(application);
CartService cartService = (CartService)webApplicationContext.getBean("cartService");

int no=Integer.parseInt(request.getParameter("product_no"));
System.out.println("딜리트부분:"+no);

cartService.deleteCart(no);

response.sendRedirect("cartform");



%>